<?php

declare(strict_types=1);

namespace App\CustHub\Service;

use App\CustHub\Mapper\ChSeatPackageMapper;
use Hyperf\Database\Model\Collection;
use Mine\Abstracts\AbstractService;

class ChSeatPackageService extends AbstractService
{
    public $mapper;

    public function __construct(ChSeatPackageMapper $mapper)
    {
        $this->mapper = $mapper;
    }

    /**
     * 获取席位套餐列表
     * @param int $seatType
     * @param int $accountType
     * @return Collection|array|\Hyperf\Collection\Collection
     */
    public function getPackageList(int $seatType,int $accountType = 1): Collection|array|\Hyperf\Collection\Collection
    {
        return $this->mapper->getPackageList($seatType,$accountType);
    }
}